package code.rocky.chapter02;

// 建议29：优先选择基本类型
public class Suggest29 {
    public static void main(String[] args) {
        Suggest29 suggest29 = new Suggest29();
        int i = 140;
        suggest29.f(i);
        suggest29.f(Integer.valueOf(i));
    }

    public void f(long a) {
        System.out.println("基本方法类型被调用");
    }

    public void f(Long a) {
        System.out.println("包装方法类型被调用");
    }
}
